package com.example.demo.dao;

import com.example.demo.model.QueryResultDO;
import com.example.demo.sqlprovider.QuerySqlProvider;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.SelectProvider;

import java.util.List;

@Mapper
public interface QueryDao {

    @SelectProvider(type= QuerySqlProvider.class,method="queryResult")
    List<QueryResultDO> queryResult(@Param("startDate") String startDate, @Param("endDate") String endDate);
}
